package com.acxy.ants.resful.bean;

import java.util.List;

/**
 * @author MrShun
 * @version 1.0
 * @Date 2017-05-10
 */
public class Page {

    //当前第几页
    private int page = 10;

    //每页大小
    private int size;

    //数据对象
    private List data;

    //总记录数
    private long rows;

    //总页数
    private int total;

    public Page(){}

    public Page(int page, int size, List data, long rows, int total){
        this.page = page;
        this.size = size;
        this.data = data;
        this.rows = rows;
        this.total = total;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public List getData() {
        return data;
    }

    public void setData(List data) {
        this.data = data;
    }

    public long getRows() {
        return rows;
    }

    public void setRows(long rows) {
        this.rows = rows;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }
}
